package com.example.tuter.entity;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "userinfo")
public class UserInfo {

    @ColumnInfo(name = "username")
    private String username;
    @NonNull
    @PrimaryKey
    @ColumnInfo(name = "student_id")
    private String studentId;

    @ColumnInfo(name = "academy_id")
    private Integer academyId;

    @ColumnInfo(name = "academy_name")
    private String academyName;

    @ColumnInfo(name = "message_id")
    private String messageId;
    @Ignore
    public UserInfo() {

    }

    public UserInfo(String username, String studentId, Integer academyId, String academyName, String messageId) {
        this.username = username;
        this.studentId = studentId;
        this.academyId = academyId;
        this.academyName = academyName;
        this.messageId = messageId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public Integer getAcademyId() {
        return academyId;
    }

    public void setAcademyId(Integer academyId) {
        this.academyId = academyId;
    }

    public String getAcademyName() {
        return academyName;
    }

    public void setAcademyName(String academyName) {
        this.academyName = academyName;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "username='" + username + '\'' +
                ", studentId='" + studentId + '\'' +
                ", academyId=" + academyId +
                ", academyName='" + academyName + '\'' +
                ", messageId='" + messageId + '\'' +
                '}';
    }
}
